package com.lt73.security.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author: hanxiao
 * @Date: 2022/3/22 15:21
 */
@Controller
public class LoginController {

    @RequestMapping("/hello")
    public String hello() {
        //这边我们,默认是返到templates下的login.html
        return "login";
    }
    @RequestMapping("/success")
    public String success() {
        //这边我们,默认是返到templates下的login.html
        return "success";
    }
}
